<?php switch ($type) {
	case 'D':
		?>
		<ul class="list-album-photo" id="photo">
			 <?php foreach($model as $data):?>
				   <li >
				       <a class="thumb-album-small" href="javascript: void(0);" onclick="viewCropAvatar('<?php echo $data->image;?>', 'M');"><img src="<?php echo Yii::app()->request->baseUrl.'/images/';?>Member/173_150/<?php echo $data->image;?>" alt="<?php echo $data->image;?>"/></a>
				   </li>
			 <?php endforeach;?>
		</ul>
		<?php
		break;
	
	case 'C':
		?>
		<ul class="list-album-photo" id="photo">
			 <?php foreach($model as $data):?>
				   <li>
				       <a class="thumb-album-small" href="javascript: void(0);" onclick="viewCropAvatar('<?php echo $data->originimage;?>', 'C');"><img src="<?php echo Yii::app()->request->baseUrl.'/images/';?>Banner/173_150/<?php echo $data->image;?>" alt="<?php echo $data->image;?>"/></a>
				   </li>
			 <?php endforeach;?>
		</ul>
		<?php
		break;

	case 'A':
		?>
		<ul class="list-album-photo" id="photo">
			 <?php foreach($model as $data):?>
				   <li>
				       <a class="thumb-album-small" href="javascript: void(0);" onclick="viewCropAvatar('<?php echo $data->originimage;?>', 'A');"><img src="<?php echo Yii::app()->request->baseUrl.'/images/';?>Avatar/173_150/<?php echo $data->image;?>" alt="<?php echo $data->image;?>"/></a>
				   </li>
			 <?php endforeach;?>
		</ul>
		<?php
		break;

	case 'M'
		?>
		<ul class="list-album-photo" id="photo">
			 <?php foreach($model as $data):?>
				   <li>
				       <a class="thumb-album-small" href="javascript: void(0);" onclick="viewCropAvatar('<?php echo $data->image;?>', 'M');"><img src="<?php echo Yii::app()->request->baseUrl.'/images/';?>Member/173_150/<?php echo $data->image;?>" alt="<?php echo $data->image;?>"/></a>
				   </li>
			 <?php endforeach;?>
		</ul>
		<?php
		break;
} ?>
